From bf9c9f17627ebd049d8b2b5ccc6bab27ce37fcca Mon Sep 17 00:00:00 2001 From: Michael Weghorn Date: Thu, 13 Aug 2015 22:36:05 +0200 Subject: [PATCH] Don't mix in user options of printer instances GTK+ currently does not support printer instances in the printing dialog. This commit avoids user options set for specific instances of a printer being accidently applied to the printer with the same name but no specific instance defined. https://bugzilla.gnome.org/show_bug.cgi?id=753628 https://bugzilla.gnome.org/show_bug.cgi?id=582747 --- modules/printbackends/cups/gtkprintbackendcups.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/modules/printbackends/cups/gtkprintbackendcups.c b/modules/printbackends/cups/gtkprintbackendcups.c index 44868ddec5..60f5263fe9 100644 --- a/modules/printbackends/cups/gtkprintbackendcups.c +++ b/modules/printbackends/cups/gtkprintbackendcups.c @@ -3967,12 +3967,9 @@ cups_parse_user_options (const char *filename, if (!*lineptr) continue; - /* NUL-terminate the name, stripping the instance name */ name = lineptr; while (!isspace (*lineptr) && *lineptr) { - if (*lineptr == '/') - *lineptr = '\0'; lineptr++; } -- 2.30.2